package com.cskaoyan.bo.promoteBO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: feisl
 * @Date: 2021/5/10 23:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GrouponrulesBO {
    public GrouponrulesBO(Integer goodsId, BigDecimal discount, Integer discountMember, String expireTime) {
        this.goodsId = goodsId;
        this.discount = discount;
        this.discountMember = discountMember;
        this.expireTime = expireTime;
    }

    private Integer id;

    private Integer goodsId;

    private String goodsName;

    private String picUrl;

    private BigDecimal discount;

    private Integer discountMember;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String expireTime;

    private Boolean deleted;
}
